package April.eleven;

import java.util.Arrays;

/*
练习
 */
public class ArraysDemo2 {
    public static void main(String[] args){
        int[] a = {99,55,44,33,77,11,22,55,90,100};
        int[] vv =function_1(a);
        System.out.println(Arrays.toString(vv));
    }
    /*
    练习将十名同学的成绩录入数组中，并将后三名同学的成绩返回
     */
    public static int[] function_1(int[] bb){
        Arrays.sort(bb);
        int[] c = new int[3];
        System.arraycopy(bb,0,c,0,3);
        return c;
    }
}
